#include<stdio.h>
#include<conio.h>
#include<math.h>
int main(){
	int n,tram,chuc,donvi;
	printf("nhap vao so co 3 chu so: ");
	scanf("%d",&n);
	tram=n/100;
	donvi=n%10;
	chuc=(n-tram*100)/10;
	switch(tram){
		case 1: printf("\tmot tram ");  break;
		case 2: printf("\thai tram ");  break;
		case 3: printf("\tba tram ");  break;
		case 4: printf("\tbon tram ");  break;
		case 5: printf("\tnam tram ");  break;
		case 6: printf("\tsau tram ");  break;
		case 7: printf("\tbay tram ");  break;
		case 8: printf("\ttam tram ");  break;
		case 9: printf("\tchin tram ");  break;
		       }
	switch(chuc){
		case 1: printf("muoi");  break;
		case 2: printf(" hai muoi");  break;
		case 3: printf("ba muoi");  break;
		case 4: printf("bon muoi");  break;
		case 5: printf("nam muoi");  break;
		case 6: printf("sau muoi");  break;
		case 7: printf("bay muoi");  break;
		case 8: printf("tam muoi");  break;
		case 9: printf("chin muoi");  break;
				}
	switch(donvi){
		case 1: printf(" mot");  break;
		case 2: printf(" hai");  break;
		case 3: printf(" ba ");  break;
		case 4: printf(" bon");  break;
		case 5: printf(" nam ");  break;
		case 6: printf(" sau");  break;
		case 7: printf(" bay");  break;
		case 8: printf(" tam");  break;
		case 9: printf(" chin");  break;
				}
	getch();
}
